package com.kevin.factory;

/**
 * 工厂测试类
 *
 * @author kevin
 * @date 2025/8/5
 */
public class CashFactoryTest {

    public static void main(String[] args) {
        CashSuper cashSuper = CashFactory.cashSuperAdapter("正常收费");
        System.out.println(cashSuper.acceptCash(5));

        cashSuper = CashFactory.cashSuperAdapter("满300返100");
        System.out.println(cashSuper.acceptCash(500));

        cashSuper = CashFactory.cashSuperAdapter("打8折");
        System.out.println(cashSuper.acceptCash(500));
    }
}
